namespace PeaceBlogData.Tables
{
    using System;
    using System.Collections.Generic;
    using System.ComponentModel.DataAnnotations;
    using System.ComponentModel.DataAnnotations.Schema;
    using System.Data.Entity.Spatial;

    public partial class Authors
    {
        [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2214:DoNotCallOverridableMethodsInConstructors")]
        public Authors()
        {
            Posts = new HashSet<Posts>();
        }

        [Key]
        public int AuthorID { get; set; }

        [StringLength(40)]
        public string NameSurname { get; set; }

        [StringLength(100)]
        public string AuthorUrl { get; set; }

        [StringLength(40)]
        public string Email { get; set; }

        [StringLength(32)]
        public string Password { get; set; }

        [StringLength(15)]
        public string Phone { get; set; }

        public int? ImageID { get; set; }

        public string Description { get; set; }

        [System.Web.Mvc.AllowHtml]
        [Column(TypeName = "text")]
        public string About { get; set; }

        [Column(TypeName = "text")]
        public string SocialInfo { get; set; }

        [StringLength(200)]
        public string WebSite { get; set; }

        [DataType(DataType.DateTime)]
        [DatabaseGenerated(System.ComponentModel.DataAnnotations.Schema.DatabaseGeneratedOption.Identity)]
        public DateTime SaveDate { get; set; }

        public virtual Files Files { get; set; }

        [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")]
        public virtual ICollection<Posts> Posts { get; set; }

        [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")]
        public virtual ICollection<Pages> Pages { get; set; }
    }
}
